package com.xlisteven.springboot_ssm_tkmapper.mapper;

import com.xlisteven.springboot_ssm_tkmapper.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;


@Mapper
@Component
public interface UserMapper extends MyBaseMapper<User> {
    @Select("select * from user where name like #{name}")
    List<User> search(@Param("name") String name);
}
